import { btnTypeEnum, tableTool_Inf } from "@/components/dile-table/index.type";
import EquipRepairPower_Constants from "../power-equipRepair";

/*
 * @Descripttion:设备备件管理权限常量
 * @LastEditors: xzh
 * @LastEditTime: 2023-09-15 15:01:43
 */
export default class EquipSparePower_Constants extends EquipRepairPower_Constants {
  /**
   * @Author: xzh
   * @Descripttion:设备备件台账工具类
   * @Param:
   */
  static equipSpareLedgerTools: Array<tableTool_Inf> = [
    {
      // t("table.btnArr.add"),
      label: "table.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("table.btnArr.edit"),
      label: "table.btnArr.edit",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.delete"),
      label: "table.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.import"),
      label: "table.btnArr.import",
      code: "import",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.equipSpareArr.btnArr.inbound"),
      label: "page.equipSpareArr.btnArr.inbound",
      code: "inbound",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.equipSpareArr.btnArr.outbound"),
      label: "page.equipSpareArr.btnArr.outbound",
      code: "outbound",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.export"),
      label: "table.btnArr.export",
      code: "export",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.search"),
      label: "table.btnArr.search",
      code: "keyWordFilter",
      btnType: btnTypeEnum.keyWordFilter,
      position: "right",
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 设备备件类型工具类
   * @Param:
   */
  static equipSpareTypeTools: Array<tableTool_Inf> = [
    {
      // t("table.btnArr.add"),
      label: "table.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("table.btnArr.edit"),
      label: "table.btnArr.edit",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.delete"),
      label: "table.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.enable"),
      label: "table.btnArr.enable",
      code: "enable",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.disEnable"),
      label: "table.btnArr.disEnable",
      code: "disEnable",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.search"),
      label: "table.btnArr.search",
      code: "keyWordFilter",
      btnType: btnTypeEnum.keyWordFilter,
      position: "right",
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 入库管理工具类
   * @Param:
   */
  static equipInBoundManageTools: Array<tableTool_Inf> = [
    {
      // t("table.btnArr.add"),
      label: "table.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("table.btnArr.edit"),
      label: "table.btnArr.edit",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.delete"),
      label: "table.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.equipSpareArr.inBoundManageArr.btnArr.inBoundDetail"),
      label: "page.equipSpareArr.inBoundManageArr.btnArr.inBoundDetail",
      code: "inBoundDetail",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.operateLog"),
      label: "table.btnArr.operateLog",
      code: "operateLog",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.import"),
      label: "table.btnArr.import",
      code: "import",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.export"),
      label: "table.btnArr.export",
      code: "export",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.search"),
      label: "table.btnArr.search",
      code: "keyWordFilter",
      btnType: btnTypeEnum.keyWordFilter,
      position: "right",
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 出库管理工具类
   * @Param:
   */
  static equipOutBoundManageTools: Array<tableTool_Inf> = [
    {
      // t("table.btnArr.add"),
      label: "table.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("table.btnArr.edit"),
      label: "table.btnArr.edit",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.delete"),
      label: "table.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.equipSpareArr.outBoundManageArr.btnArr.outBoundDetail"),
      label: "page.equipSpareArr.outBoundManageArr.btnArr.outBoundDetail",
      code: "inBoundDetail",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.operateLog"),
      label: "table.btnArr.operateLog",
      code: "operateLog",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.import"),
      label: "table.btnArr.import",
      code: "import",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.export"),
      label: "table.btnArr.export",
      code: "export",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.search"),
      label: "table.btnArr.search",
      code: "keyWordFilter",
      btnType: btnTypeEnum.keyWordFilter,
      position: "right",
    },
  ];
}
